<!-- 搜索 -->
<template>
	<view class="container">
		<view class="content" @click="handleNavToFindShopPage()">
			<input class="search-input" type="text" placeholder="请输入商品名称" disabled />
			<button class="iconfont search-btn">&#xe600;</button>
			<!-- <button class="iconfont clear-btn">&#xe603;</button> -->
		</view>
	</view>
</template>

<script setup>
	const handleNavToFindShopPage = () => {
		uni.navigateTo({
			url: '/pagesC-shopping/find-shop/index'
		});
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 30rpx 25rpx 0;
		box-sizing: border-box;

		.content {
			position: relative;

			.search-input {
				width: 100%;
				height: 74rpx;
				font-size: 28rpx;
				border-radius: 40rpx;
				background-color: white;
				padding-left: 84rpx;
				box-sizing: border-box;

				&:active {
					background-color: #fafafa;
				}
			}

			.search-btn {
				position: absolute;
				top: 0;
				left: 0;
				width: 84rpx;
				height: 74rpx;
				font-size: 40rpx;
				color: #CCCCCC;
				text-align: center;
				line-height: 74rpx;
			}

			.clear-btn {
				position: absolute;
				top: 0;
				right: 0;
				width: 74rpx;
				height: 74rpx;
				font-size: 36rpx;
				color: #CCCCCC;
				text-align: center;
				line-height: 74rpx;
			}
		}
	}
</style>